home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / LIFER__ / PROTO / U / LIFE_INP.C < prev    next >
Text File  |  1991-07-27  |  3KB  |  114 lines

  1. /* LIFE_INPUT */
  2.  
  3. /* File name: LIFE_INPUT */
  4. /* Function: Handle a modal dialog */
  5. /* History: 7/27/91 Original by Prototyper 3.0   */
  6.  
  7. #include "PCommonLife.h"    /* Common */
  8. #include "Common_Life.h"    /* Common */
  9. #include "PUtils_Life.h"    /* General Utilities */
  10. #include "Utils_Life.h"    /* General Utilities */
  11.  
  12. #include "LIFE_INPUT.h"    /* This file */
  13.  
  14.  
  15. /* ======================================================= */
  16.  
  17.  
  18.  
  19. /* Routine: D_Init_LIFE_INPUT */
  20. /* Purpose: This routine is called while when the program is first run. */
  21. /*     This is used for onetime initialization. */
  22. void D_Init_LIFE_INPUT()
  23. {
  24.  
  25. }                                                                                /* End of procedure */
  26.  
  27.  
  28. /* ======================================================= */
  29.  
  30.  
  31. /* Routine: D_Filter_LIFE_INPUT */
  32. /* Purpose: This routine is called while inside of the Modal Dialog filter */
  33. /*     theDialog is the dialog(alert) pointer */
  34. /*     theEvent is the event that we are to see if we should filter */
  35. /*     itemHit is the item we set if we handle the event ourselves */
  36. Boolean D_Filter_LIFE_INPUT(theDialog, theEvent, itemHit)
  37. DialogPtr    theDialog;
  38. EventRecord    *theEvent;
  39. short    *itemHit;
  40. {
  41. Boolean    Filter_LIFE_INPUT;
  42.  
  43.         Filter_LIFE_INPUT = FALSE;                                         /* Let the modal routine handle it */
  44.  
  45.         return(Filter_LIFE_INPUT);
  46. }                                                                                /* End of function */
  47.  
  48.  
  49. /* ======================================================= */
  50.  
  51.  
  52. /* Routine: D_Refresh_LIFE_INPUT */
  53. /* Purpose: Refresh the modal dialog */
  54. void D_Refresh_LIFE_INPUT(theDialog)
  55. DialogPtr    theDialog;
  56. {
  57.  
  58. }                                                                                /* End of procedure */
  59.  
  60.  
  61. /* ======================================================= */
  62.  
  63.  
  64. /* Routine: D_Setup_LIFE_INPUT */
  65. /* Purpose: Setup the modal dialog */
  66. void D_Setup_LIFE_INPUT(theDialog)
  67. DialogPtr    theDialog;
  68. {
  69.  
  70. }                                                                                /* End of procedure */
  71.  
  72.  
  73. /* ======================================================= */
  74.  
  75.  
  76. /* Routine: D_Hit_LIFE_INPUT */
  77. /* Purpose: Hit in the modal dialog */
  78. void D_Hit_LIFE_INPUT( theDialog,  itemHit,  ExitDialog)
  79. DialogPtr    theDialog;
  80. short    itemHit;
  81. Boolean    *ExitDialog;
  82. {
  83.  
  84. if (itemHit ==Res_Dlg_NEXT)                                              /* Handle the Button being pressed */
  85.     {
  86.     }
  87.  
  88. if (itemHit ==Res_Dlg_Cancel)                                             /* Handle the Button being pressed */
  89.     {
  90.     }
  91.  
  92. if (itemHit ==Res_Dlg_OK2)                                               /* Handle the Button being pressed */
  93.     {
  94.     }
  95.  
  96. }                                                                                /* End of procedure */
  97.  
  98.  
  99. /* ======================================================= */
  100.  
  101.  
  102. /* Routine: D_Exit_LIFE_INPUT */
  103. /* Purpose: Exit the modal dialog */
  104. void D_Exit_LIFE_INPUT(theDialog)
  105. DialogPtr    theDialog;
  106. {
  107.  
  108. }                                                                                /* End of procedure */
  109.  
  110.  
  111. /* ======================================================= */
  112.  
  113.  
  114.